home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gscdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  3.2 KB  |  88 lines

  1. /* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gscdefs.h,v 1.2 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Prototypes for configuration definitions in gconfig.c. */
  21.  
  22. #ifndef gscdefs_INCLUDED
  23. #  define gscdefs_INCLUDED
  24.  
  25. #include "gconfigv.h"
  26.  
  27. /*
  28.  * This file may be #included in places that don't even have stdpre.h,
  29.  * so it mustn't use any Ghostscript definitions in any code that is
  30.  * actually processed here (as opposed to being part of a macro
  31.  * definition).
  32.  */
  33.  
  34. /* Miscellaneous system constants (read-only systemparams). */
  35. /* They should all be const, but one application needs some of them */
  36. /* to be writable.... */
  37.  
  38. #if SYSTEM_CONSTANTS_ARE_WRITABLE
  39. #  define CONFIG_CONST        /* */
  40. #else
  41. #  define CONFIG_CONST const
  42. #endif
  43.  
  44. extern CONFIG_CONST long gs_buildtime;
  45. extern const char *CONFIG_CONST gs_copyright;
  46. extern const char *CONFIG_CONST gs_product;
  47. extern const char *CONFIG_CONST gs_productfamily;
  48. extern CONFIG_CONST long gs_revision;
  49. extern CONFIG_CONST long gs_revisiondate;
  50. extern CONFIG_CONST long gs_serialnumber;
  51.  
  52. /* Installation directories and files */
  53. extern const char *const gs_doc_directory;
  54. extern const char *const gs_lib_default_path;
  55. extern const char *const gs_init_file;
  56.  
  57. /* Resource tables.  In order to avoid importing a large number of types, */
  58. /* we only provide macros for some externs, not the externs themselves. */
  59.  
  60. #define extern_gx_device_halftone_list()\
  61.   typedef DEVICE_HALFTONE_RESOURCE_PROC((*gx_dht_proc));\
  62.   extern const gx_dht_proc gx_device_halftone_list[]
  63.  
  64. #define extern_gx_image_class_table()\
  65.   extern const gx_image_class_t gx_image_class_table[]
  66. extern const unsigned gx_image_class_table_count;
  67.  
  68. #define extern_gx_image_type_table()\
  69.   extern const gx_image_type_t * const gx_image_type_table[]
  70. extern const unsigned gx_image_type_table_count;
  71.  
  72. /* We need the extra typedef so that the const will apply to the table. */
  73. #define extern_gx_init_table()\
  74.   typedef init_proc((*gx_init_proc));\
  75.   extern const gx_init_proc gx_init_table[]
  76.  
  77. #define extern_gx_io_device_table()\
  78.   extern const gx_io_device * const gx_io_device_table[]
  79. extern const unsigned gx_io_device_table_count;
  80.  
  81. /* Return the list of device prototypes, a NULL list of their structure */
  82. /* descriptors (no longer used), and (as the value) the length of the lists. */
  83. #define extern_gs_lib_device_list()\
  84.   int gs_lib_device_list(P2(const gx_device * const **plist,\
  85.                 gs_memory_struct_type_t **pst))
  86.  
  87. #endif /* gscdefs_INCLUDED */
  88.